package com.yunti.springboot.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Administrator
 */
@Data
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    /**  | 表字段 id */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**  | 表字段 username */
    private String username;

    /**  | 表字段 password */
    private String password;

    /**  | 表字段 phone */
    private String phone;

    /**  | 表字段 nickname */
    private String nickname;

    /**  | 表字段 school_id */
    private Integer schoolId;

    /**  | 表字段 parent_id */
    private Integer parentId;

    /**  | 表字段 enable */
    private Boolean enable;

    /**  | 表字段 create_time */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**  | 表字段 updateT_time */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table user
     *
     * @mbg.generated
     */


}
